package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 变频器
 * </p>
 *
 * @author wumu
 * @since 2019-06-21
 */
public class DevInverter extends Model<DevInverter> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String eui;

    private Integer addr;

    private Integer status;

    private Integer online;

    private Long operateTime;

    private Float pressure;

    private String remark;

    private String location;

    private Long createTime;

    private Long updateTime;

    /**
     * 给定压力
     */
    private Float givenPressure;

    /**
     * 最大压力
     */
    private Float maxPressure;

    /**
     * 最小压力
     */
    private Float minPressure;

    /**
     * 故障
     */
    private Integer fault;

    private String tenantId;

    private Integer areaId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEui() {
        return eui;
    }

    public void setEui(String eui) {
        this.eui = eui;
    }

    public Integer getAddr() {
        return addr;
    }

    public void setAddr(Integer addr) {
        this.addr = addr;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getOnline() {
        return online;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    public Long getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Long operateTime) {
        this.operateTime = operateTime;
    }

    public Float getPressure() {
        return pressure;
    }

    public void setPressure(Float pressure) {
        this.pressure = pressure;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Float getGivenPressure() {
        return givenPressure;
    }

    public void setGivenPressure(Float givenPressure) {
        this.givenPressure = givenPressure;
    }

    public Float getMaxPressure() {
        return maxPressure;
    }

    public void setMaxPressure(Float maxPressure) {
        this.maxPressure = maxPressure;
    }

    public Float getMinPressure() {
        return minPressure;
    }

    public void setMinPressure(Float minPressure) {
        this.minPressure = minPressure;
    }

    public Integer getFault() {
        return fault;
    }

    public void setFault(Integer fault) {
        this.fault = fault;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DevInverter{" +
        "id=" + id +
        ", name=" + name +
        ", eui=" + eui +
        ", addr=" + addr +
        ", status=" + status +
        ", online=" + online +
        ", operateTime=" + operateTime +
        ", pressure=" + pressure +
        ", remark=" + remark +
        ", location=" + location +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", givenPressure=" + givenPressure +
        ", maxPressure=" + maxPressure +
        ", minPressure=" + minPressure +
        ", fault=" + fault +
        ", tenantId=" + tenantId +
        ", areaId=" + areaId +
        "}";
    }
}
